<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Test02</title>
    <script src="https://unpkg.com/vue/dist/vue.js" type="text/javascript"></script>
</head>
<body>

<div id="app">
    <!--    复选框-->
    <!--    <input type="checkbox" v-model="message" :true-value="trueValue" :false-value="falseValue">-->

    <!--    <div v-for="val in values">-->
    <!--        <input type="checkbox" v-model="message" :value="val">{{val}}-->
    <!--    </div>-->

    <!--    <div v-for="val in values">-->
    <!--        <input type="radio" v-model="message" :value="val">{{val}}-->
    <!--    </div>-->


    <!--    选择框-->
    <select multiple v-model="message">
        <option :value="val" v-for="val in values">{{val}}</option>
    </select>

    <p style="white-space: pre-line;">Message is: {{ message }}</p>


</div>

<script>
    let vm = new Vue({
        el: '#app',
        data: {
            // message: '',
            message: [],
            trueValue: 'Y',
            falseValue: 'N',
            values: ['c01', 'c02', 'c03'],
        },
        methods: {}
    });

</script>

</body>
</html>